﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WH.Common.Attributes
{
    public class EncryptFieldAttribute : Attribute
    {
        public EncryptFieldAttribute()
        {
        }

        public bool IsEncrypt { get; set; } = true;

        public EncryptOrDecryptEnum EncryptOrDecrypt { get; set; }
    }

    public enum EncryptOrDecryptEnum
    {
        /// <summary>
        /// 加密
        /// </summary>
        Encrypt = 1,

        /// <summary>
        /// 解密
        /// </summary>
        Decrypt = 2
    }
}